// Decompiled by JAD v1.5.4.2. Copyright 1997-98 Pavel Kouznetsov.
// JAD Home Page:      http://web.unicom.com.cy/~kpd/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   Zoop.java

import java.applet.Applet;
import java.awt.*;
import java.awt.image.FilteredImageSource;

class ImagePalette
{

    ImagePalette(Applet applet, String s)
        throws InterruptedException
    {
        theApplet = applet;
        MediaTracker mediatracker = new MediaTracker(theApplet);
        iOld = theApplet.getImage(theApplet.getCodeBase(), s);
        i = theApplet.createImage(new FilteredImageSource(iOld.getSource(), new AlphaFilter(1)));
        mediatracker.addImage(iOld, 0);
        mediatracker.addImage(i, 1);
        mediatracker.waitForAll();
    }

    void drawPiece(Graphics g, int j, int k, int l, int i1, int j1, int k1)
    {
        g.drawImage(i, j1 - j, k1 - k, theApplet);
    }

    private Image iOld;
    private Image i;
    private MediaTracker m;
    private Applet theApplet;
}
